package com.ruoyi.user.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.user.mapper.IdentityVerificationMapper;
import com.ruoyi.user.domain.IdentityVerification;
import com.ruoyi.user.service.IIdentityVerificationService;

/**
 * 实名认证Service业务层处理
 * 
 * @author fly
 * @date 2024-09-13
 */
@Service
public class IdentityVerificationServiceImpl implements IIdentityVerificationService 
{
    @Autowired
    private IdentityVerificationMapper identityVerificationMapper;

    /**
     * 查询实名认证
     * 
     * @param id 实名认证主键
     * @return 实名认证
     */
    @Override
    public IdentityVerification selectIdentityVerificationById(Long id)
    {
        return identityVerificationMapper.selectIdentityVerificationById(id);
    }

    /**
     * 查询实名认证列表
     * 
     * @param identityVerification 实名认证
     * @return 实名认证
     */
    @Override
    public List<IdentityVerification> selectIdentityVerificationList(IdentityVerification identityVerification)
    {
        return identityVerificationMapper.selectIdentityVerificationList(identityVerification);
    }

    /**
     * 新增实名认证
     * 
     * @param identityVerification 实名认证
     * @return 结果
     */
    @Override
    public int insertIdentityVerification(IdentityVerification identityVerification)
    {
        return identityVerificationMapper.insertIdentityVerification(identityVerification);
    }

    /**
     * 修改实名认证
     * 
     * @param identityVerification 实名认证
     * @return 结果
     */
    @Override
    public int updateIdentityVerification(IdentityVerification identityVerification)
    {
        return identityVerificationMapper.updateIdentityVerification(identityVerification);
    }

    /**
     * 批量删除实名认证
     * 
     * @param ids 需要删除的实名认证主键
     * @return 结果
     */
    @Override
    public int deleteIdentityVerificationByIds(Long[] ids)
    {
        return identityVerificationMapper.deleteIdentityVerificationByIds(ids);
    }

    /**
     * 删除实名认证信息
     * 
     * @param id 实名认证主键
     * @return 结果
     */
    @Override
    public int deleteIdentityVerificationById(Long id)
    {
        return identityVerificationMapper.deleteIdentityVerificationById(id);
    }
}
